import java.io.*;

public class test1 {
    public static void main(String[] args) throws IOException {
        DataOutputStream dos = new DataOutputStream(new FileOutputStream("D:\\a.txt"));
        dos.writeUTF("sadf");
        dos.writeInt(1);
        DataInputStream dis = new DataInputStream(new FileInputStream("D:\\a.txt"));
        String s = dis.readUTF();
        System.out.println(s);
        System.out.println(dis.readInt());
        dis.close();
        dos.close();
    }
}
